<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/jquery-3.5.1.js"></script>
    <script src="../js/jquery-checkall.js"></script>
</head>
<body>
<input type="checkbox" id="all">全选<br>
<input type="checkbox" name="langs" value="java">java
<input type="checkbox" name="langs" value="c++">c++
<input type="checkbox" name="langs" value="js">js
<input type="checkbox" name="langs" value="html">html
<script type="text/javascript">
    $(function () {
        $("#all").checkall({
            target: ":checkbox[name='langs']",
            callback: function () {
                console.log($(":checkbox[name='langs']"))
            },
            childCallback: function (_this) {
                alert(_this.value)
            }
        });
    })
</script>
</body>
</html>